﻿@model CoffeeMobile.Models.ViewModels.DeleteFoodModel
@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("Delete", "Foods", FormMethod.Post))
{
    <ul data-role="listview" data-inset="true">
        @Html.AntiForgeryToken()
        <div>
            <div style="width: 30%; float: left;">
                @{
    Html.ViewContext.Writer.Write("<img src=" + @Url.Content("../../Content/img/" + @Model.Image) + " />");
                }
            </div>
            <div style="width: 50%; float: right; text-align: center; margin-right: 30px;">
                @Html.HiddenFor(p => p.ID)
                @Html.HiddenFor(p=>p.Image)
                @Html.HiddenFor(p=>p.FoodGroupID)
                <input type="submit" class="dASButton" value="Xác nhận" />
                @Html.ActionLink("Hủy", "Index", "Foods", null, new Dictionary<string, object> { { "data-role", "button" } })
            </div>
        </div>
        <li data-role="fieldcontain">
            @Html.LabelFor(p => p.Name)
            @Html.TextBoxFor(p => p.Name, new Dictionary<string, object> { { "class", "ui-disabled" } })
        </li>
        <li data-role="fieldcontain">
            @Html.LabelFor(p => p.Description)
            @Html.TextBoxFor(p => p.Description, new Dictionary<string, object> { { "class", "ui-disabled" } })
        </li>
        <li data-role="fieldcontain">
            @Html.LabelFor(p => p.UnitPrice)
            @Html.TextBoxFor(p => p.UnitPrice, new Dictionary<string, object> { { "class", "ui-disabled" } })
        </li>
        <li data-role="fieldcontain">
            @Html.LabelFor(p => p.GroupName)
            @Html.TextBoxFor(p => p.GroupName, new Dictionary<string, object> { { "class", "ui-disabled" } })
        </li>
    </ul>
}